package com.desay.pangoo.itmt.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import com.desay.pangoo.itmt.entity.TechOnlineReviewEntity;

import cn.hutool.core.date.DateTime;

/**
 * @author uidq1163
 */
@Repository
public interface TechOnlineReviewRepository extends JpaSpecificationExecutor<TechOnlineReviewEntity>,
		PagingAndSortingRepository<TechOnlineReviewEntity, Long> {
	/**
	 * 查询未结束的评审
	 *
	 * @return
	 */
	List<TechOnlineReviewEntity> findByReviewResultIsNull();

	/**
	 * 查询某个时间段内的评审
	 * 
	 * @param begin
	 * @param end
	 * @return
	 */
	List<TechOnlineReviewEntity> findAllByCreateTimeBetween(DateTime begin, DateTime end);
}